import 'package:flutter/material.dart';

class DefineRow extends Row {

   DefineRow({super.key});

   @override
   List<Widget> get children => <Widget>[
      Expanded(flex: 1,
        child: GestureDetector(onTapDown: (tapDown) {print("ha00--tapDown");} ,
         child: Container(
           height: 100,
           decoration:
             const BoxDecoration(
                color: Colors.deepPurple,
                borderRadius: BorderRadius.all(Radius.circular(10)),
             ),
            margin: const EdgeInsets.fromLTRB(5, 5, 0, 0),
           child: const Center(
             child:Text('123',
                style: TextStyle(
                   fontSize: 18.00,
                   fontWeight: FontWeight.w200,
                   color: Colors.lightBlue,
                ),
             )
           ),
          ),
        ),
      ),
      Expanded(flex: 1,
         child: Container(
         height: 100,
         margin: const EdgeInsets.fromLTRB(5, 5, 0, 0),
         color: Colors.cyanAccent,
         child:  const Center(
             child:Text('456',
                style: TextStyle(
                   fontSize: 18.00,
                   color: Colors.lightBlue,),
             )
         ),
      ),
      ),
      Expanded(flex: 1,
         child:ClipRRect(borderRadius: const BorderRadius.only() ,
                         clipper: null,child:Container(
         height: 100,
         margin: const EdgeInsets.fromLTRB(5, 5, 5, 0),
         color: Colors.green,
         child:  const Center(
             child:Text('789',
                style: TextStyle(
                   fontSize: 18.00,
                   color: Colors.grey,),
             )
         )
         ),
      ),
      ),
   ] ;

  // @override
  // TextDirection getEffectiveTextDirection(BuildContext context) {
  //   return TextDirection.ltr;
  // }
  //
  // @override
  // void didUnmountRenderObject(RenderObject renderObject) {
  //
  // }

  // @override
  // void updateRenderObject(BuildContext context, RenderFlex renderObject) {
  //   renderObject
  //     ..direction = direction
  //     ..mainAxisAlignment = mainAxisAlignment
  //     ..mainAxisSize = mainAxisSize
  //     ..crossAxisAlignment = crossAxisAlignment
  //     ..textDirection = getEffectiveTextDirection(context)
  //     ..verticalDirection = verticalDirection
  //     ..textBaseline = textBaseline
  //     ..clipBehavior = clipBehavior;
  // }

  // @override
  // MultiChildRenderObjectElement createElement() {
  //
  // }

  // @override
  // RenderFlex createRenderObject(BuildContext context) {
  //   return RenderFlex(
  //     direction: direction,
  //     mainAxisAlignment: mainAxisAlignment,
  //     mainAxisSize: mainAxisSize,
  //     crossAxisAlignment: crossAxisAlignment,
  //     textDirection: getEffectiveTextDirection(context),
  //     verticalDirection: verticalDirection,
  //     textBaseline: textBaseline,
  //     clipBehavior: clipBehavior,
  //   );
  // }
}